package com.beidouapp.mapper;

import java.util.List;
import java.util.Map;

import com.beidouapp.domain.pojo.Employee;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.beidouapp.domain.example.RoleExample;
import com.beidouapp.domain.pojo.Role;

public interface RoleMapper extends BaseMapper<Role> {

	List<Role> findRolesByEmpId(@Param("empId") Long empId);

	List<Role> findRolesByOrgId(@Param("orgId") Long orgId);

	public List<Role> findPageRoles(RowBounds rowBounds, Map<String, Object> params);

	public long countPageRoles(Map<String, Object> params);

	public List<Role> findRolesByMap(Map<String, Object> params);

	// --------------------------------------

	List<Role> findRoleById(Long id);

	int countByExample(RoleExample example);

	int deleteByExample(RoleExample example);

	int insert(Role record);

	int insertSelective(Role record);

	List<Role> selectByExample(RoleExample example);

	int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

	int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

	int updateByPrimaryKeySelective(Role record);

	int updateByPrimaryKey(Role record);;

	public Role findRoleByFkId(String fkId);

	public int removeEntryByFKID(String fkId);

	public List<Role> findRolesByDepartmentId(String departmentId);
}